package com.commander.gui.messages;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.MessageBox;

import com.commander.gui.CommanderGUIHandler;

public class WarningMessage implements CommanderMessage{
	
	public WarningMessage(final String message){
		show(message);
	}
	@Override
	public void show(String message) {
		MessageBox messageBox = new MessageBox(CommanderGUIHandler.getShell(), SWT.ICON_WARNING);
		messageBox.setText("Warning!");
		messageBox.setMessage(message);
		messageBox.open();
	}
}